
<?php 
include DOCUMENT_ROOT."/Framework/controller.class.php";
/*
 * 修改查询
 */

class ChangeController extends controller{
    public function register(){
         parent::header();
         parent::smartyAction("Index");
         include DOCUMENT_ROOT."/Application/Index/model/LoginModel.class.php";
        $LoginModel=new LoginModel();
        $id=$_GET["id"];
        $arr=$LoginModel->xiugai($id);
//        var_dump($arr);
        $this->smarty->assign("arr", $arr[0]);
        $this->smarty->display("xiugai.html");
            }
            /*
             * 修改
             */
            public function insertinto(){
                   parent::header();
                   parent::smartyAction("Index");
                   include DOCUMENT_ROOT."/Application/Index/model/LoginModel.class.php";
                   $LoginModel=new LoginModel(); 
                   $name=$_POST["name"];
                   $pwd=$_POST["pwd"];
                   $id=$_POST["id"];
                   $arr=$LoginModel->XG($name,$pwd,$id);
            }
// =============================================================================
            
            
            
        }